using System.Runtime.InteropServices;
using Game.Framework;

namespace Game.Graph
{
    public enum ValueType
    {
        
    }
    
    [StructLayout(LayoutKind.Explicit, Size=40)]
    public struct GraphValue : IUnionValue
    {
        [FieldOffset(0)] public int meta;

        [FieldOffset(8)] public float floatValue;
        public float AsFloat => floatValue;
        
        [FieldOffset(8)] public int intValue;
        public int AsInt => intValue;

    }
}